package character.reader;

import java.io.FileReader;
import java.io.IOException;

public class FileReaderDemo2 {
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("G:\\Javatest2\\character\\reader\\a.txt");
        int length;
        char[] chs=new char[1024];
        while((length=fr.read(chs))!=-1){
            String s=new String(chs,0,length);
            System.out.println(s);
        };
        fr.close();
    }
}
